package cn.koala.key.stock.controller;

import cn.koala.key.stock.domain.vo.LeaveStockDetailVO;
import cn.koala.key.stock.service.LeaveStockDetailService;
import cn.ehi.authority.annotation.WebAuthentication;
import cn.seed.common.core.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:出库明细
 * @author 32415
 * @time 2019/04/28
 **/
@RestController
@Api(value = "LeaveStockDetail",tags = "出库明细")
public class LeaveStockDetailController {

    @Autowired
    private LeaveStockDetailService leaveStockDetailService;

    @ApiOperation(value = "出库详情(编辑)")
    @GetMapping("/leave-stock/detail")
    @WebAuthentication(systemCode = "KoalaKey",moduleIds = "KOALAKEY_B_00021")
    public Result<LeaveStockDetailVO> selectDetail(@RequestParam String orderNo) {
        return leaveStockDetailService.selectDetail(orderNo);
    }
}
